package com.myproject.thread.daemon;

public class Test {

    public static void main(String[] args) {

        Daemon daemon = new Daemon();
        daemon.start();

        Main main = new Main();
        main.setDaemon(true);
        main.start();


    }
}
